home *** CD-ROM | disk | FTP | other *** search
/ 3D GFX / 3D GFX.iso / amiutils / i_l / irit5 / cagd_lib / cagd_loc.h < prev    next >
C/C++ Source or Header  |  1995-12-30  |  1KB  |  48 lines

  1. /******************************************************************************
  2. * Cagd_loc.h - header file for the CAGD library.                  *
  3. * This header is local to the library - it is NOT external.              *
  4. *******************************************************************************
  5. * Written by Gershon Elber, Mar. 90.                          *
  6. ******************************************************************************/
  7.  
  8. #ifndef CAGD_LOC_H
  9. #define CAGD_LOC_H
  10.  
  11. #include <math.h>
  12.  
  13. #define INFINITY 1e6
  14.  
  15. #define W 0     /* Positions of points in Points array (see structs below). */
  16. #define X 1
  17. #define Y 2
  18. #define Z 3
  19.  
  20. #include "iritprsr.h"
  21. #include "cagd_lib.h"             /* Include the extrenal header as well. */
  22.  
  23. /* Declaration of extrenal variables local to the cagd library only. */
  24. extern CagdLin2PolyType _CagdLin2Poly;    /* Linear srf convertion to polys. */
  25.  
  26. #if defined(__cplusplus) || defined(c_plusplus)
  27. extern "C" {
  28. #endif
  29.  
  30. /* Declarations of functions local to the Cagd library only. */
  31. CagdPolygonStruct *_CagdMakePolygon(CagdBType ComputeNormals,
  32.                     CagdBType ComputeUV,
  33.                         CagdPtStruct *Pt1,
  34.                     CagdPtStruct *Pt2,
  35.                     CagdPtStruct *Pt3,
  36.                     CagdVecStruct *Nl1,
  37.                     CagdVecStruct *Nl2,
  38.                         CagdVecStruct *Nl3,
  39.                     CagdUVStruct *UV1,
  40.                     CagdUVStruct *UV2,
  41.                         CagdUVStruct *UV3);
  42.  
  43. #if defined(__cplusplus) || defined(c_plusplus)
  44. }
  45. #endif
  46.  
  47. #endif /* CAGD_LOC_H */
  48.